const SET_PRIVILEGETREE = 'SET_PRIVILEGETREE'
const SET_CURRENTPAGE = 'SET_CURRENTPAGE'
const SET_MENUINDEX = 'SET_MENUINDEX'
const SET_DEFAULTASIDEACTIVE = 'SET_DEFAULTASIDEACTIVE'
const SET_PATH = 'SET_PATH'
const SET_SUB = 'SET_SUB'
const SET_ASIDEISCLICK = 'SET_ASIDEISCLICK'
const SET_ISRELOADDATA = 'SET_ISRELOADDATA'
const SET_TOKEN = 'SET_TOKEN'
const SET_USERID = 'SET_USERID'
const SET_HEADURL = 'SET_HEADURL'
const SET_USERNAME = 'SET_USERNAME'
const SET_MOBILE = 'SET_MOBILE'
const SET_POWER = 'SET_POWER'
const SET_ASIDEACTIVE = 'SET_ASIDEACTIVE'
const SET_APPLICATIONSTATE = 'SET_APPLICATIONSTATE'
const SET_ISENTRY = 'SET_ISENTRY'
const SET_MERCHANTID = 'SET_MERCHANTID'
const SET_COMPANYNAME = 'SET_COMPANYNAME'
const SET_USERINFO = "SET_USERINFO"
const SET_LINKNAME = "SET_LINKNAME"
const SET_ISSHOP = "SET_ISSHOP"
const SET_SOURCE = "SET_SOURCE"
const SET__ISOWNAUTH = "SET__ISOWNAUTH"
const SET__BUSINESSSCOPE = 'SET__BUSINESSSCOPE'
const SET_SHOPTYPE = 'SET_SHOPTYPE'
export default {
    [SET_COMPANYNAME] (state, val) {
        state.companyName = val
    },
    [SET_MERCHANTID] (state, val) {
        state.merchantId = val
    },
    [SET_ASIDEACTIVE] (state, val) {
        state.asideActive = val
    },
    [SET_POWER] (state, val) {
        state.power = val
    },
    [SET_TOKEN] (state, val) {
        state.token = val
    },
    [SET_USERID] (state, val) {
        state.userId = val
    },
    [SET_HEADURL] (state, val) {
        state.headUrl = val
    },
    [SET_USERNAME] (state, val) {
        state.userName = val
    },
    [SET_MOBILE] (state, val) {
        state.mobile = val
    },
    [SET_PRIVILEGETREE] (state, val) {
        state.privilegeTree = val
    },
    [SET_CURRENTPAGE] (state, val) {
        state.currentPage = val
    },
    [SET_MENUINDEX] (state, val) {
        state.menuIndex = val
    },
    [SET_DEFAULTASIDEACTIVE] (state, val) {
        state.defaultAsideActive = val
    },
    [SET_PATH] (state, val) {
        state.path = val
    },
    [SET_SUB] (state, val) {
        state.sub = val
    },
    [SET_ASIDEISCLICK] (state, val) {
        state.asideIsClick = val
    },
    [SET_ISRELOADDATA] (state, val) {
        state.isReLoadData = val
    },
    [SET_APPLICATIONSTATE] (state, val) {
        state.applicationState = val
    },
    [SET_ISENTRY] (state, val) {
        state.isEntry = val
    },
    [SET_USERINFO] (state, val) {
        state.userInfo = val
    },
    [SET_LINKNAME] (state, val) {
        state.linkName = val
    },
    [SET_ISSHOP] (state, val) {
        state.isShop = val
    },
    [SET_SOURCE] (state, val) {
        state.soUrce = val
    },
    [SET__ISOWNAUTH] (state, val) {
        state.isOwnAuth = val
    },
    [SET__BUSINESSSCOPE] (state, val) {
        state.businessScope = val
    },
    [SET_SHOPTYPE] (state, val) {
        state.shopType = val
    },
}
